package com.hyz.util;

import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.UUID;


/**
 * @author HGD
 * @date 2022/9/24 11:06
 */
@Component
public class GetValue {
    public java.sql.Date getCurrentTime() {
        Date date = new Date();
        return new java.sql.Date(date.getTime());
    }

    public Long getUuid() {
        return UUID.randomUUID().getMostSignificantBits();
    }
}
